package com.lidong.lowcode.database.entity.database;

import java.util.List;

/**
 * 表主键只能有一个联合主键或者单一主键
 *
 * @author LiDong
 * @version 1.0.0
 * @createTime 9/10/2022 10:44 AM
 */
public class DataBasePrimaryKey {

    /**
     * 主键相关字段
     */
    private List<DataBaseColumn> dataBaseColumns;

    /**
     * 外键名称
     */
    private String name;

    public List<DataBaseColumn> getColumns() {
        return dataBaseColumns;
    }

    public void setColumns(List<DataBaseColumn> dataBaseColumns) {
        this.dataBaseColumns = dataBaseColumns;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "ForeignKey{" +
                "columns=" + dataBaseColumns +
                ", name='" + name + '\'' +
                '}';
    }
}
